﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Fornecedor.aspx.cs" Inherits=" RzCorportativo.Views.Cadastros.Fornecedor" %>
<%@ Register Src="~/Views/Endereco.ascx" TagPrefix="app" TagName="Endereco" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Fornecedor
    </h1>
    <hr />
    <asp:HiddenField runat="server" ID="FornecedorId" />
    <div class="controls controls-row">
        <asp:TextBox runat="server" ID="Cnpj" mask="cnpj" placeholder="CNPJ" data-toggle="tooltip" title="CNPJ" data-placement="left" />
        <asp:TextBox runat="server" ID="Nome" placeholder="Nome" data-toggle="tooltip" title="Nome" data-placement="left"/>
    </div>
    <div class="controls controls-row">
        <asp:TextBox runat="server" ID="Telefone1" mask="telefone" placeholder="Telefone 1" data-toggle="tooltip" title="Telefone 1" data-placement="left"/>
        <asp:TextBox runat="server" ID="Telefone2" mask="telefone" placeholder="Telefone 2" data-toggle="tooltip" title="Telefone 2" data-placement="left"/>
    </div>
    <div class="controls controls-row">
        <asp:TextBox runat="server" ID="Telefone3" mask="telefone" placeholder="Telefone 3" data-toggle="tooltip" title="Telefone 3" data-placement="left"/>
        <asp:TextBox runat="server" ID="Email" placeholder="E-mail" data-toggle="tooltip" title="E-mail" data-placement="left"/>
    </div>
    <div data-spy="scroll" data-target="" data-offset="0" class="scrollspy-example">
        <asp:Button Text="salvar" runat="server" ID="salvar" CssClass="btn btn-success" 
            onclick="salvar_Click" />
        <asp:Button Text="voltar" runat="server" ID="voltar" CssClass="btn btn-info"  />
    </div>
    <div data-spy="scroll" data-target="" data-offset="0" class="scrollspy-example">
        <div style="overflow: auto; height: 500px; background-color: White">
            <div class="tabbable tabs">
                <ul class="nav nav-tabs" id="tabMenu">
                    <li class="active"><a href="#painel">Endereço</a></li>
                </ul>
                <div id="panelContainer" class="tab-content">
                    <div class="tab-pane active" id="painel">
                        <app:Endereco runat="server" ID="Endereco" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#tabMenu a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            })
        })
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
